package com.hanamaki.study.demo.testng;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.Test;

public class FireFoxDriverTestNg {

    @Test
    public static void firefox() {

        /* 1. 注册驱动的位置  */
        System.setProperty("webdriver.gecko.driver", "C:\\Program Files\\Mozilla Firefox\\geckodriver.exe");

        /* 2, 注册驱动 */
        WebDriver driver = new FirefoxDriver();

        /* 打开网址测试  */
        driver.get("https://www.baidu.com");
    }

}
